
const url = 'http://localhost:3000/api/'

const URL = class {
    static m() {
        const login = `${url}login/` // 登录
        const uploadres = `${url}uploadres/`         // 头像上传接口
        const uploadshop = `${url}uploadshop/`       // 商家信息上传
        const obtainshop = `${url}obtainshop/`       // 商家信息获取
        const modifyshop = `${url}modifyshop/`       // 商家信息修改
        const menucategory = `${url}menucategory/`   // 添加菜品类目
        const dishesacquire = `${url}dishesacquire/` // 获取菜品类目
        const uploadingunit = `${url}uploadingunit/` // 添加菜品单位
        const acquireunit = `${url}acquireunit/`     // 获取菜品单位
        const uploaddishes = `${url}uploaddishes/`   // 添加上架菜品
        const obtaindishes = `${url}obtaindishes/`   // 获取上架菜品 // 文件丢失 此处
        const modifydishes = `${url}modifydishes/`   // 修改上架菜品
        const fromsale = `${url}fromsale/`           // 下架菜品
        const obtainorder = `${url}obtainorder/`     // 订单管理页面
        const vieworder = `${url}vieworder/`         // 订单详情
        const receiving = `${url}receiving/`         // 订单接单
        const checkout = `${url}checkout/`           // 订单结账
        const qrcode = `${url}qrcode/`               // 生成小程序二维码
        const getqrcode = `${url}getqrcode/`         // 获取所有的小程序二维码
        const salesvolume = `${url}salesvolume/`     // 获取前七天的销售额
        

        return { login, uploadres, uploadshop, 
            obtainshop, modifyshop, menucategory, 
            dishesacquire, uploadingunit,acquireunit,
             obtaindishes ,
            uploaddishes,
            modifydishes,
            fromsale,obtainorder,vieworder,receiving,checkout,qrcode,getqrcode,salesvolume}
    }
}
export default URL